@ echo off
%1 %2
ver|find "5.">nul&&goto :Admin
mshta vbscript:createobject("shell.application").shellexecute("%~s0","goto :Admin","","runas",1)(window.close)&goto :eof
:Admin


net stop MSSQL$SQLEXPRESS

net start MSSQL$SQLEXPRESS

sqlcmd -S localhost\MSSQLSERVER,1433 -U sa -P sa -d  master -Q"RESTORE DATABASE studentwork FROM disk='D:\idea-workspace\JavaEE\Student Work\backup.bak'"

pause
